package demo1;


public class Proxy implements Rent {
    private Host host;
    public Proxy(){

    }
    public Proxy(Host host){
        this.host = host ;

    }

    public void rent() {
        host.rent();
        seeHouse();
        fare();
    }

    public void seeHouse() {
        System.out.println("中介带你看房子");
    }
    public void fare(){
        System.out.println("收费用");
    }
}
